package com.vil.mapper;

import com.vil.entity.Mail;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface MailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Mail record);

    int insertSelective(Mail record);

    Mail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Mail record);

    int updateByPrimaryKey(Mail record);
    
//    @Select("select count(1) from mail where village=#{village}")
//    int isExist(@Param("village")String village);
    
    List<Mail> getListByManyConditions(Mail record);
    
//    List<Mail> getListByManyConditions(String village);
    
  //批量删除
    int deleteMany(Long[] array);
}